package com.leeh.dao.impl;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.leeh.pojo.User;

@Repository
public class UserDaoImpl {

	@Autowired
	private SessionFactory sessionFactory;

	public void saveUser(User user){
		Session session = sessionFactory.openSession();
        session.save(user);
        session.close();
	}
	
}
